Web Programming in Scheme - the LAML approach
نویسنده
چکیده
Functional programming fits well with the use of descriptive markup in HTML and XML. There is also a good fit between S-expressions in Lisp and the means of expression in HTML and XML. These similarities are exploited in LAML (Lisp Abstracted Markup Language) which is a software package for Scheme. LAML supports exact mirrors of different versions of HTML. In the mirrors each HTML element is represented by a named Scheme function. The mirror functions guarantee that the generated HTML code is valid. LAML has been used for both server side CGI programming and programmatic authoring of non-trivial static web materials. The programmatic LAML author can use the power of functional programming for the production of everyday web documents. Equally important, it is straightforward to define domain-specific web languages in Scheme syntax which parallel the advantages of XML.
منابع مشابه
The Development of LAML - A Suite of Web Software for Scheme
A collection of Scheme software for web authoring and programming is described. The software is called LAML. The paper gives a cohesive overview of LAML with emphasis on the lessons learned during its development. Both the LAML libraries, the document styles, the tools, and the LAML system as such are discussed. At the end of the paper we assess the use of Scheme for web authoring and programmi...
متن کاملXML in LAML - Web Programming in Scheme
The LAML software package makes XML available in Scheme and the functional programming paradigm. The elements of an XML language are mirrored as functions in Scheme. The parameter profile of the mirror functions is designed to provide for recognizability in comparison to XML, and to make a good fit with Scheme seen as a list processing language. The paper characterizes the mirrors by means of s...
متن کاملWeb programming in Scheme with LAML
Functional programming fits well with the use of descriptive markup in HTML and XML. There is also a good fit between S-expressions in Lisp and the XML data set. These similarities are exploited in LAML which is a software package for Scheme. LAML supports exact mirrors of the three variants of XHTML 1.0, SVG 1.0, and a number of more specialized XML languages. The mirrors are all synthesized f...
متن کاملXML Transformations in Scheme with LAML - a Minimalistic Approach
Transformation of XML do uments is often supported by spe ial purpose languages that make use of pattern mat hing and repla ement. Many XML programmers need to learn and understand one of these languages for transformation purposes. In this paper we ontrast and ompare spe ial purpose, pattern mat hing solutions with transformation programs written in a general purpose, fun tional programming la...
متن کاملUsing Lisp as a Markup Language The LAML Approach
Lisp is widely known as an extremely versatile language. In this paper we will demonstrate that Lisp can be used as a powerful markup language for WWW authoring and for provision of information on the Internet. Using the LAML approach, as introduced in this paper, we write textual documents directly in Lisp; Function calls serve as applications of tags, as known from the SGML family of markup l...
متن کامل